import * as request from './request.js'
const { fetchGet, fetchPost } = request
/**
 * 登录
 * @returns
 */
export const userLogin = (params) => {
	return fetchPost('/api/user/login', params)
}
/**
 * 注册
 * @returns
 */
export const userRegister = (params) => {
	return fetchPost('/api/user/register', params)
}

/**
 * 查询用户列表
 * @returns
 */
export const checkUserList = (params) => {
	return fetchGet('/api/user/list', params)
}
